package com.tanglon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanglon.domain.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface ArticleMapper extends BaseMapper<Article> {


    /**
     * 修改访问量
      * @param articleId
     * @param viewCount
     */
    @Update("update sg_article set view_count=#{viewCount} where id=#{articleId}")
    void updateViewCount(@Param("articleId") Long articleId, @Param("viewCount") Long viewCount);
}
